# vmlist=$(sudo virsh list | awk '/run/{print $2}'| tr '\n' ' ')

# complete -W "$word" vm

# function _vm_completion()
# {
#     if [[ "${COMP_WORDS[1]}" == "ssh" ]];then
#         COMPREPLY=($(compgen -W "$vmlist" ${COMP_WORDS[${COMP_CWORD}]}))
#     fi
# }

# complete -F _vm_completion vm
